package com.qingchunlin.springtransaction.service;

import com.qingchunlin.springtransaction.mapper.LogInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;

@Service
public class LogService {
    @Autowired
    private LogInfoMapper logInfoMapper;

    public Integer insertLog(String userName,String op){
        return logInfoMapper.insert(userName, op);
    }
}
